package org.permission.dao;

import org.permission.pojo.admin;

import java.util.List;

public interface adminDao {

    public void add(admin admin);

    public void delete(Integer id);

    public void batchDelete(Integer[] ids);

    public void update(admin admin);

    public admin getById(Integer id);

    public List<admin> getAll();

    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    public admin getByUserName(String username);

}
